package cn.hesion.springcloud.config;
/**
 * ClassName: Config <br/>
 * Description: <br/>
 * date: 2020/8/30 11:18<br/>
 *
 * @author Hesion<br />
 * @version
 * @since JDK 1.8
 */

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @program: springcloud
 * @description:
 * @author: hesion
 * @create: 2020-08-30 11:18
 **/
@Configuration
public class Config {

    @Bean
    @LoadBalanced
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}